package com.banana.manager.forest.entity.info;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@TableName("pest_info")
@Getter
@Setter
@NoArgsConstructor
@ToString
public class PestBean {

    @TableId(value = "pest_id",type = IdType.AUTO)
    private Integer pestId;

    @TableField("pest_name")
    private String pestName;

    @TableField("pest_breed")
    private String pestBreed;

    @TableField("pest_host")
    private String pestHost;

    @TableField("pest_predator")
    private String pestPredator;

    @TableField("pest_harm")
    private String pestHarm;

    @TableField("pest_measure")
    private String pestMeasure;

    @TableField("pest_young_photo")
    private String pestYoungPhoto;

    @TableField("pest_adult_photo")
    private String pestAdultPhoto;

    public PestBean(String pestName, String pestBreed, String pestHost, String pestPredator, String pestHarm, String pestMeasure, String pestYoungPhoto, String pestAdultPhoto) {
        this.pestName = pestName;
        this.pestBreed = pestBreed;
        this.pestHost = pestHost;
        this.pestPredator = pestPredator;
        this.pestHarm = pestHarm;
        this.pestMeasure = pestMeasure;
        this.pestYoungPhoto = pestYoungPhoto;
        this.pestAdultPhoto = pestAdultPhoto;
    }
}
